package com.yty.order.enums;

import lombok.Getter;

@Getter
public enum DataDictionary {
    NEW(Field.ORDER_STATUS, 0, "新订单"),
    FINISHED(Field.ORDER_STATUS, 1, "完结"),
    CANCEL(Field.ORDER_STATUS, 2, "取消"),

    WAIT(Field.PAY_STATUS, 0, "待支付"),
    PAY_FINISHED(Field.PAY_STATUS, 1, "已支付"),
    ;
    private Field field;
    private Integer value;
    private String desc;

    DataDictionary(Field field, Integer value, String desc) {
        this.field = field;
        this.value = value;
        this.desc = desc;
    }
}
